home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 2004 August
/
Hrac_72_2004-08_dvd.iso
/
dema
/
Rapid Gun
/
rg_setup.exe
/
common
/
image_Negative.fx
< prev
next >
Wrap
Text File
|
2004-04-19
|
1KB
|
39 lines
// LF2 Engine
// (C) 2002-3 7FX
//---------------------------------------------------------------------------
// Desc
string desc : Description = "Image shader, ktery meni zobrazeni na negativni.";
// Shader type phase
string type : Type = "image";
//---------------------------------------------------------------------------
// Render target texture
texture RT : RenderTargetFSMap;
//---------------------------------------------------------------------------
sampler sRT = sampler_state
{
Texture = <RT>;
MinFilter = POINT;
MagFilter = POINT;
AddressU = CLAMP;
AddressV = CLAMP;
};
//---------------------------------------------------------------------------
// Pixel shader
float4 PS(float2 uv: TEXCOORD0) : COLOR
{
return (1 - tex2D(sRT, uv));
}
//---------------------------------------------------------------------------
// Technique with vertex and pixel shader
technique vs11_ps11
{
pass p0
{
//CullMode = None;
ZEnable = false;
ZWriteEnable = false;
PixelShader = compile ps_1_1 PS();
}
}
//---------------------------------------------------------------------------